home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
vol16n13.zip
/
ATLCTL.ZIP
/
AtlEdit10.idl
< prev
next >
Wrap
Text File
|
1997-01-28
|
2KB
|
80 lines
#include <olectl.h>
// AtlEdit10.idl : IDL source for AtlEdit10.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (AtlEdit10.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";
importlib("stdole2.tlb");
[
object,
uuid(B5C629A2-76B7-11D0-BC62-00A0243ABE0B),
dual,
helpstring("IAtlEditCtl Interface"),
pointer_default(unique)
]
interface IAtlEditCtl : IDispatch
{
[propput, id(DISPID_BACKCOLOR)]
HRESULT BackColor([in]OLE_COLOR clr);
[propget, id(DISPID_BACKCOLOR)]
HRESULT BackColor([out,retval]OLE_COLOR* pclr);
[propput, id(DISPID_FORECOLOR)]
HRESULT ForeColor([in]OLE_COLOR clr);
[propget, id(DISPID_FORECOLOR)]
HRESULT ForeColor([out,retval]OLE_COLOR* pclr);
[propput, id(DISPID_TEXT)]
HRESULT Text([in]BSTR strText);
[propget, id(DISPID_TEXT)]
HRESULT Text([out, retval]BSTR* pstrText);
// The Font stock property
[propputref, id(DISPID_FONT)]
HRESULT Font([in]IFont* stdole.Font);
[propget, id(DISPID_FONT)]
HRESULT Font([out, retval]IFont** stdole.Font);
// Our custom error color property
[propput, id(0)]
HRESULT ErrorColor([in]OLE_COLOR clr);
[propget, id(0)]
HRESULT ErrorColor([out,retval]OLE_COLOR* pclr);
};
[
uuid(851C6361-76B6-11D0-BC62-00A0243ABE0B),
version(1.0),
// control,
helpstring("AtlEdit10 1.0 Type Library")
]
library ATLEDIT10Lib
{
// Our event interface for AtlEditCtl
[
uuid(B5C629A1-76B7-11D0-BC62-00A0243ABE0B),
helpstring("Event interface for AtlEditCtl")
]
dispinterface _AtlEditCtlEvents
{
properties:
methods:
[id(1)] void Validate([in]BSTR Text, [out]VARIANT_BOOL* Valid);
};
[
uuid(B5C629A3-76B7-11D0-BC62-00A0243ABE0B),
helpstring("AtlEditCtl Class")
]
coclass AtlEditCtl
{
[default] interface IAtlEditCtl;
[default, source] dispinterface _AtlEditCtlEvents;
};
};